package com.hangim.pce.model;

import com.baomidou.mybatisplus.annotations.TableField;
import com.baomidou.mybatisplus.annotations.TableName;
import com.hangim.pce.common.domain.IdEntity;

import java.util.Date;

/**
 * <p>
 * 处方明细表
 * </p>
 *
 * @author hongjiliang
 * @since 2018-10-19
 */
@TableName("sys_prescription_detail")
public class SysPrescriptionDetail extends IdEntity {

    /**
     * 处方id
     */
    @TableField("pres_id")
    private Long presId;
    /**
     * 药品id
     */
    @TableField("drug_id")
    private Long drugId;
    /**
     * 药品包装（0.25g*10粒*2板）
     */
    private String pack;
    /**
     * 药品名称
     */
    private String name;
    /**
     * 每次用量
     */
    private Integer dose;
    /**
     * 用量单位 1 片/粒 2 ml毫升，3 l升，4 瓶/支，5 g克
     */
    private Integer unit;
    /**
     * 每日次数
     */
    private Integer daily;
    /**
     * 服药天数
     */
    private Integer days;
    /**
     * 频次
     */
    private Integer freq;
    /**
     * 频次单位 1 分 2 时，3 天/日，4 周，5 月
     */
    @TableField("freq_unit")
    private Integer freqUnit;
    /**
     * 用法：1 口服 2 注射 3 局部用药
     */
    private Integer usage;
    /**
     * 状态
     */
    private Boolean active;
    /**
     * 创建时间
     */
    @TableField("created_date")
    private Date createdDate;
    /**
     * 创建人
     */
    @TableField("created_by")
    private String createdBy;
    /**
     * 更新时间
     */
    @TableField("updated_date")
    private Date updatedDate;
    /**
     * 更新人
     */
    @TableField("updated_by")
    private String updatedBy;

    public Long getPresId() {
        return presId;
    }

    public void setPresId(Long presId) {
        this.presId = presId;
    }

    public Long getDrugId() {
        return drugId;
    }

    public void setDrugId(Long drugId) {
        this.drugId = drugId;
    }

    public String getPack() {
        return pack;
    }

    public void setPack(String pack) {
        this.pack = pack;
    }

    public String getName() {
        return name;
    }

    public void setName(String name) {
        this.name = name;
    }

    public Integer getDose() {
        return dose;
    }

    public void setDose(Integer dose) {
        this.dose = dose;
    }

    public Integer getUnit() {
        return unit;
    }

    public void setUnit(Integer unit) {
        this.unit = unit;
    }

    public Integer getDaily() {
        return daily;
    }

    public void setDaily(Integer daily) {
        this.daily = daily;
    }

    public Integer getDays() {
        return days;
    }

    public void setDays(Integer days) {
        this.days = days;
    }

    public Integer getFreq() {
        return freq;
    }

    public void setFreq(Integer freq) {
        this.freq = freq;
    }

    public Integer getFreqUnit() {
        return freqUnit;
    }

    public void setFreqUnit(Integer freqUnit) {
        this.freqUnit = freqUnit;
    }

    public Integer getUsage() {
        return usage;
    }

    public void setUsage(Integer usage) {
        this.usage = usage;
    }

    public Boolean getActive() {
        return active;
    }

    public void setActive(Boolean active) {
        this.active = active;
    }

    public Date getCreatedDate() {
        return createdDate;
    }

    public void setCreatedDate(Date createdDate) {
        this.createdDate = createdDate;
    }

    public String getCreatedBy() {
        return createdBy;
    }

    public void setCreatedBy(String createdBy) {
        this.createdBy = createdBy;
    }

    public Date getUpdatedDate() {
        return updatedDate;
    }

    public void setUpdatedDate(Date updatedDate) {
        this.updatedDate = updatedDate;
    }

    public String getUpdatedBy() {
        return updatedBy;
    }

    public void setUpdatedBy(String updatedBy) {
        this.updatedBy = updatedBy;
    }

    @Override
    public String toString() {
        return "SysPrescriptionDetail{" +
                ", id=" + id +
                ", presId=" + presId +
                ", drugId=" + drugId +
                ", pack=" + pack +
                ", name=" + name +
                ", dose=" + dose +
                ", unit=" + unit +
                ", daily=" + daily +
                ", days=" + days +
                ", freq=" + freq +
                ", freqUnit=" + freqUnit +
                ", usage=" + usage +
                ", active=" + active +
                ", createdDate=" + createdDate +
                ", createdBy=" + createdBy +
                ", updatedDate=" + updatedDate +
                ", updatedBy=" + updatedBy +
                "}";
    }
}
